package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 身份管理表
 */
@Data
@Entity
@Table(name = "system_role")
public class SystemRole implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 身份管理id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 身份管理名称
     */
    @Column(name = "role_name", nullable = false, length = 32)
    private String roleName;
    
    /**
     * 身份管理权限(menus_id)
     */
    @Column(name = "rules", nullable = false, columnDefinition = "text")
    private String rules;
    
    /**
     * 级别
     */
    @Column(name = "level", nullable = false)
    private Integer level;
    
    /**
     * 状态
     */
    @Column(name = "status", nullable = false)
    private Integer status;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false)
    private Date createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", nullable = false)
    private Date updateTime;
} 